<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>layout 后台大布局 - Layui</title>
    <link rel="stylesheet" href="/plug-in/layui/css/layui.css?version=<%=new java.util.Date()%>" media="all">
    <link rel="stylesheet" href="/plug-in/layer/theme/default/layer.css?version=<%=new java.util.Date()%>">
    <jsp:include page="../headcss.jsp"></jsp:include>
</head>
<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin">
    <%--<!--引入左侧菜单 -->--%>
    <jsp:include page="../menu.jsp"></jsp:include>

    <div class="layui-body">
        <!-- 内容主体区域 -->
        <h1 class="big-h1" id="h1id">新增用户</h1>
        <div class="layui-form">
            <div class="layui-form-item" style="padding-top: 10px">
                <label class="layui-form-label">用户名</label>
                <div class="layui-input-block mid-input">
                    <input type="text" name="userName" id ="userName" autocomplete="off" placeholder="请输入用户名" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">真实姓名</label>
                <div class="layui-input-block mid-input">
                    <input type="text" name="realName" id="realName" autocomplete="off" placeholder="请输入真实姓名" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">性别</label>
                <div class="layui-input-block">
                    <input id="sexRadio0" type="radio" name="sex" value="0" title="男" >
                    <input id="sexRadio1" type="radio" name="sex" value="1" title="女">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">出生日期</label>
                <div class="layui-input-inline">
                    <input type="text" class="layui-input" id="birthday" placeholder="yyyy-MM-dd">
                </div>
            </div>
            <div class="layui-form-item" style="padding-top: 10px">
                <label class="layui-form-label">电话号码</label>
                <div class="layui-input-block mid-input">
                    <input type="text" name="phoneNum" id="phoneNum" autocomplete="off" placeholder="请输入电话号码" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item" style="padding-top: 10px">
                <label class="layui-form-label">身份证号</label>
                <div class="layui-input-block mid-input">
                    <input type="text" name="idCard" id="idCard" autocomplete="off" placeholder="请输入身份证号" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item" id="passwordReDiv" style="padding-top: 10px">
                <label class="layui-form-label">密码：</label>
                <div class="layui-input-block mid-input">
                    <input id="passwordRe" type="password" name="password" autocomplete="off" placeholder="请输入密码" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item" id="passwordReDiv2" style="padding-top: 10px">
                <label class="layui-form-label">确认密码：</label>
                <div class="layui-input-block mid-input">
                    <input id="passwordRe2" type="password" name="password" autocomplete="off" placeholder="请再次输入密码" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-input-block">
                    <button id = "addUser" class="layui-btn" lay-submit="" lay-filter="submit">立即提交</button>
                    <button id = "reset" type="reset" class="layui-btn layui-btn-primary">重置</button>
                </div>
            </div>
        </div>
    </div>

</div>
<script type="text/javascript" src="/js/userManage/userAdd.js" charset="utf-8"></script>
<script>
    var token = '<%=request.getParameter("token")%>';
    var userName = '${userName}';
    var id = '${id}';
    var birthday = '${birthday}';
    var idCard = '${idCard}';
    var phoneNum = '${phoneNum}';
    var realName = '${realName}';
    var sex = '${sex}';
    var pageType = '${pageType}';
</script>
</body>
</html>